package com.web.common.document.entity;

import java.time.LocalDateTime;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Schema(title = "ShareDocChapter分享文档章节", description = "文档章节信息")
public class ShareDocChapter {

	@Schema(title = "主键")
	private Integer mainId;
	
	@Schema(title = "树结构唯一索引值")
	private String treeIndex;
	
	@Schema(title = "父节点")
	private Integer parentId;
	
	@Schema(title = "标题")
	private String title;
	
	@Schema(title = "类型，0目录；1章节")
	private Integer type;
	
	@Schema(title = "排序，值越小越靠前")
	private Integer sort;
	
	@Schema(title = "文档索引")
	private String contentIndex;
	
	@Schema(title = "创建时间")
	private LocalDateTime createTime;
	
	@Schema(title = "更新时间")
	private LocalDateTime updateTime;
	
	@Schema(title = "子节点列表")
	private List<ShareDocChapter> children;
}
